import { EEquip } from "../../../../Message/Public/EEquip";
type int = number;
//class FashionBoxUtil
    
    export  class FashionBoxUtil
    {
        

        public static getFashionType(arg1: int): int
        {
            var loc1=arg1;
            switch (loc1) 
            {
                case 0:
                {
                    return EEquip._EEquipFashion;
                }
                case 1:
                {
                    return EEquip._EEquipWing;
                }
                case 2:
                {
                    return EEquip._EEquipFashionWeapon;
                }
                case 3:
                {
                    return EEquip._EEquipFootPrint;
                }
                case 4:
                {
                    return EEquip._EEquipBubble;
                }
                case 5:
                {
                    return EEquip._EEquipSurround;
                }
                case 6:
                {
                    return EEquip._EEquipWaistBelt;
                }
                case 7:
                {
                    return EEquip._EEquipElf;
                }
                default:
                {
                    break;
                }
            }
            return 0;
        }

        public static getFashionJewelAttriPc(arg1: int, arg2: int): string
        {
            if (arg2 == 0) 
            {
                return "88" + arg1 + "88881.jpg";
            }
            var loc1=Math.ceil(arg2 / 30);
            return "88" + arg1 + "8888" + loc1 + ".jpg";
        }

        public static getTargetFitNum(arg1: Array<any>, arg2: int): int
        {
            var loc2=0;
            var loc1=arg1.length;
            var loc3=0;
            while (loc3 < loc1) 
            {
                if (arg1[loc3] >= arg2) 
                {
                    ++loc2;
                }
                ++loc3;
            }
            return loc2;
        }

        public static getArrFromDic(arg1: Map<any, any> /* flash.utils.Dictionary */, arg2: Array<any>): Array<any>
        {
            var loc3=0;
            var loc1=[];
            var loc2=arg2.length;
            var loc4=0;
            while (loc4 < loc2) 
            {
                loc3 = arg2[loc4];
                loc1.push(arg1[loc3]);
                ++loc4;
            }
            return loc1;
        }
    }
